﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace Sun.WPF.Controls
{
    public class SunButton : Button
    {
        #region 属性
        /// <summary>
        /// 圆角
        /// </summary>
        public int BorderRadius
        {
            get { return (int)GetValue(BorderRadiusProperty); }
            set { SetValue(BorderRadiusProperty, value); }

        }

        public static readonly DependencyProperty BorderRadiusProperty = DependencyProperty.Register("BorderRadius", typeof(int), typeof(SunButton),new FrameworkPropertyMetadata());

        /// <summary>
        /// 默认背景
        /// </summary>
        public string DefaultBackground
        {
            get { return (string)GetValue(DefaultBackgroundProperty); }
            set { SetValue(DefaultBackgroundProperty, value); }
        }

        public static readonly DependencyProperty DefaultBackgroundProperty = DependencyProperty.Register("DefaultBackground", typeof(string), typeof(SunButton), new FrameworkPropertyMetadata());


        /// <summary>
        /// 不可用背景
        /// </summary>
        public string EnabledBackground
        {
            get { return (string)GetValue(EnabledBackgroundProperty); }
            set { SetValue(EnabledBackgroundProperty, value); }
        }

        public static readonly DependencyProperty EnabledBackgroundProperty = DependencyProperty.Register("EnabledBackground", typeof(string), typeof(SunButton), new FrameworkPropertyMetadata());

        /// <summary>
        /// 鼠标移入
        /// </summary>
        public string MouseOverBackground
        {
            get { return (string)GetValue(MouseOverBackgroundProperty); }
            set { SetValue(MouseOverBackgroundProperty, value); }
        }

        public static readonly DependencyProperty MouseOverBackgroundProperty = DependencyProperty.Register("MouseOverBackground", typeof(string), typeof(SunButton), new FrameworkPropertyMetadata());


        #endregion 属性

    }
}
